import Vue from 'vue'
import VueRouter from 'vue-router'
import Home from '../views/Home.vue'

Vue.use(VueRouter)

const routes = [
  {
    path: '/',
    name: 'Home',
    component: Home,
      meta:{
        flag:true
      }
  },
  {
    path: '/store',
    name: 'Store',
    // route level code-splitting
    // this generates a separate chunk (about.[hash].js) for this route
    // which is lazy-loaded when the route is visited.
    component: () => import(/* webpackChunkName: "about" */ '../views/Store.vue'),
      meta:{
          flag:true
      }
  },
    {
        path: '/car',
        name: 'Car',
        // route level code-splitting
        // this generates a separate chunk (about.[hash].js) for this route
        // which is lazy-loaded when the route is visited.
        component: () => import(/* webpackChunkName: "about" */ '../views/Car.vue'),
        meta:{
            flag:true
        }
    },
    {
        path: '/mine',
        name: 'Mine',
        // route level code-splitting
        // this generates a separate chunk (about.[hash].js) for this route
        // which is lazy-loaded when the route is visited.
        component: () => import(/* webpackChunkName: "about" */ '../views/Mine.vue'),
        meta:{
            flag:true
        }
    },
    {
        path: '/login',
        name: 'Login',
        component: () => import(/* webpackChunkName: "about" */ '../views/Login.vue'),
        meta:{
            flag:false
        }
    },
    {
        path: '/register',
        name: 'Register',
        component: () => import(/* webpackChunkName: "about" */ '../views/Register.vue'),
        meta:{
            flag:false
        }
    },
    {
        path: '/hui',
        name: 'Hui',
        component: () => import(/* webpackChunkName: "about" */ '../views/Hui.vue'),
        meta:{
            flag:false
        }
    },
    {
        path: '/jiesuan',
        name: 'Jiesuan',
        component: () => import(/* webpackChunkName: "about" */ '../views/Jiesuan.vue'),
        meta:{
            flag:false
        }
    },
    {
        path: '/dai',
        name: 'Dai',
        component: () => import(/* webpackChunkName: "about" */ '../views/Dai.vue'),
        meta:{
            flag:false
        }
    },
    {
        path: '/ring',
        name: 'Ring',
        component: () => import(/* webpackChunkName: "about" */ '../views/Ring.vue'),
        meta:{
            flag:false
        }
    },
    {
        path: '/earring',
        name: 'Earring',
        component: () => import(/* webpackChunkName: "about" */ '../views/Earring.vue'),
        meta:{
            flag:false
        }
    },
    {
        path: '/braceiet',
        name: 'Braceiet',
        component: () => import(/* webpackChunkName: "about" */ '../views/Braceiet.vue'),
        meta:{
            flag:false
        }
    },
    {
        path: '/necklace',
        name: 'Necklace',
        component: () => import(/* webpackChunkName: "about" */ '../views/Necklace.vue'),
        meta:{
            flag:false
        }
    },
    {
        path: '/quit',
        name: 'Quit',
        component: () => import(/* webpackChunkName: "about" */ '../views/Quit.vue'),
        meta:{
            flag:false
        }
    },
]

const router = new VueRouter({
  routes
})

export default router
